﻿
namespace Leek.Persistence
{
    public static class DomainObjectPropertyFactory
    {
        public static DomainObjectProperty<TProp> Create<T, TId, TProp>(
            DomainObject<T, TId> owner, TProp initialValue = default(TProp))
            where T : DomainObject<T, TId>
        {
            return new DomainObjectProperty<TProp>(owner, initialValue);
        }
    }
}
